package com.ruoyi.project.system.register.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.register.mapper.TableRegisterMapper;
import com.ruoyi.project.system.register.domain.TableRegister;
import com.ruoyi.project.system.register.service.ITableRegisterService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 挂号信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-13
 */
@Service
public class TableRegisterServiceImpl implements ITableRegisterService 
{
    @Autowired
    private TableRegisterMapper tableRegisterMapper;

    /**
     * 查询挂号信息
     * 
     * @param id 挂号信息主键
     * @return 挂号信息
     */
    @Override
    public TableRegister selectTableRegisterById(Long id)
    {
        return tableRegisterMapper.selectTableRegisterById(id);
    }

    /**
     * 查询挂号信息列表
     * 
     * @param tableRegister 挂号信息
     * @return 挂号信息
     */
    @Override
    public List<TableRegister> selectTableRegisterList(TableRegister tableRegister)
    {
        return tableRegisterMapper.selectTableRegisterList(tableRegister);
    }

    /**
     * 新增挂号信息
     * 
     * @param tableRegister 挂号信息
     * @return 结果
     */
    @Override
    public int insertTableRegister(TableRegister tableRegister)
    {
        return tableRegisterMapper.insertTableRegister(tableRegister);
    }

    /**
     * 修改挂号信息
     * 
     * @param tableRegister 挂号信息
     * @return 结果
     */
    @Override
    public int updateTableRegister(TableRegister tableRegister)
    {
        return tableRegisterMapper.updateTableRegister(tableRegister);
    }

    /**
     * 批量删除挂号信息
     * 
     * @param ids 需要删除的挂号信息主键
     * @return 结果
     */
    @Override
    public int deleteTableRegisterByIds(String ids)
    {
        return tableRegisterMapper.deleteTableRegisterByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除挂号信息信息
     * 
     * @param id 挂号信息主键
     * @return 结果
     */
    @Override
    public int deleteTableRegisterById(Long id)
    {
        return tableRegisterMapper.deleteTableRegisterById(id);
    }
}
